<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="data_list">
	<div class="data_list_title">
		<img src="${pageContext.request.contextPath}/img/list_icon.png" />&nbsp;最新博客
	</div>
	<div class="datas">
		<ul>
			<c:forEach items="${blogList}" var="blog">
				<li style="margin-bottom: 30px;">
					<span class="title">
						<img alt="文章类型" src="${pageContext.request.contextPath}/headPortraits/yuan.jpg" />
						<a href="${pageContext.request.contextPath}/blog/articles/${blog.blogId}.html">${blog.title}</a>
					</span>
					<span class="summary">摘要:${blog.summary}&nbsp;...</span>
					<span class="img">
						<c:forEach items="${blog.imageList}" var="image">
							<a href="${pageContext.request.contextPath}/blog/articles/${blog.blogId}.html">${image}</a>&nbsp;&nbsp;
						</c:forEach>
					</span>
					<span class="info">
						<span style="color:#999;"><fmt:formatDate value="${blog.releaseDate}" type="date" pattern="yyyy-MM-dd HH:mm"/></span>&nbsp;&nbsp;
						<span style="color:#33A5BA;"><a href="${pageContext.request.contextPath}/blog/articles/${blog.blogId}.html">阅读</a><span style="color:#999;">(${blog.clickHit})</span>&nbsp;&nbsp;</span>
						<span style="color:#33A5BA;"><a href="${pageContext.request.contextPath}/blog/articles/${blog.blogId}.html">评论</a><span style="color:#999;">(${blog.replyHit})</span>&nbsp;&nbsp;</span>
					</span>
				</li>
				<div class="hr" style="height: 5px; border: none; border-top: 1px dashed gray; padding-bottom: 10px;"></div>			
			</c:forEach>
		</ul>
	</div>
	<div style="text-align:center;">
		<nav>
			<ul class="pagination">${pageCode}</ul>
		</nav>
	</div>
</div>